package com.guigu.service.impl;

import com.guigu.entity.Indicator;
import com.guigu.mapper.IndicatorMapper;
import com.guigu.service.IndicatorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class IndicatorServiceImpl implements IndicatorService {
    @Autowired
    private IndicatorMapper indicatorMapper;
    @Override
    public List<Indicator> queryIndicatorByName(String name) {
        return this.indicatorMapper.queryIndicatorByName(name);
    }

    @Override
    public int addIndicator(Indicator indicator) {
        return this.indicatorMapper.addIndicator(indicator);
    }

    @Override
    public int updateIndicator(Indicator indicator) {
        return this.indicatorMapper.updateIndicator(indicator);
    }

    @Override
    public Indicator queryIndicatorById(Indicator indicator) {
        return this.indicatorMapper.queryIndicatorById(indicator);
    }

}
